<!DOCTYPE html>
<html>
    <body>
        <a href="javascript:void(0)">点我</a><br>
        <a href="javascript:void(alert('Warning!!'))">点我弹出警告</a>
    </body>
</html>